
function showMessage(messageData) {
  $('.growlUI').attr('id',messageData.type);
  $('div.growlUI h1').html(messageData.message);
  $('div.growlUI h2').html(messageData.description);
  
  $.blockUI({    
     message: $('div.growlUI'), 
      fadeIn: 700, 
      fadeOut: 700, 
      timeout: 2000, 
      showOverlay: false, 
      centerY: false, 
      css: { 
          width: '350px', 
          top: '5px', 
          left: '', 
          right: '10px', 
          border: 'none', 
          padding: '5px', 
          backgroundColor: '#000', 
          '-webkit-border-radius': '10px', 
          '-moz-border-radius': '10px', 
          'border-radius': '10px',
          opacity: .8, 
          color: '#fff' 
      } 
  }); 
}


function showMessageOpt(type, message, description) {
  $('.growlUI').attr('id',type);
  $('div.growlUI h1').html(message);
  $('div.growlUI h2').html(description);
  
  $.blockUI({    
     message: $('div.growlUI'), 
      fadeIn: 700, 
      fadeOut: 700, 
      timeout: 2000, 
      showOverlay: false, 
      centerY: false, 
      css: { 
          width: '350px', 
          top: '5px', 
          left: '', 
          right: '10px', 
          border: 'none', 
          padding: '5px', 
          backgroundColor: '#000', 
          '-webkit-border-radius': '10px', 
          '-moz-border-radius': '10px', 
          'border-radius': '10px',
          opacity: .8, 
          color: '#fff' 
      } 
  });     
}
